/*
 * $Id: Tcp6Address.cc,v 1.4 2006-01-30 17:38:27 bacon Exp $
 */

#include <xpp/net/Tcp6Address.h>
#include <xpp/net/Socket.h>

namespace xpp
{
	namespace net
	{

		Tcp6Address::Tcp6Address (): TcpAddress (V6)
		{
		}

		Tcp6Address::Tcp6Address (const InetAddress& adr): TcpAddress (adr)
		{
			xp_assert (this->family() == adr.family());
		}

		Tcp6Address::Tcp6Address (
			const struct sockaddr_in6& adr): TcpAddress (adr)
		{
		}

		Tcp6Address& Tcp6Address::operator= (const Tcp6Address& adr)
                {
                        TcpAddress::operator= (adr);
                        return *this;
                }


		Tcp6Address& Tcp6Address::operator= (const InetAddress& adr) 
		{
			xp_assert (this->family() == adr.family());
			TcpAddress::operator= (adr);
			return *this;
		}

	}
}
